<div class="accordion well-small" id="accordion2">
    
    <div class="accordion-group">
        <div class="accordion-heading navbar-inner sf_filter_header">
            <a class="accordion-toggle text-center navbar-inverse filter_link"
               data-toggle="collapse" data-parent="#accordion2" href="#collapseOne">
                <i class="icon icon-search icon-white"></i>
                {% trans with {} from "admin_interface" %}filter.filter{% endtrans %}
            </a>
        </div>
        <div id="collapseOne" class="accordion-body collapse">
            <div class="accordion-inner" style="background:white;">
                <div class="admin_interface_filter">
                    {{ form_stylesheet(filter_form) }}
                    {{ form_javascript(filter_form) }}
                    <link href="{{ asset('bundles/zkinterface/css/admin_interface.css') }}" rel="stylesheet"/>
                    <script src="{{ asset('bundles/zkinterface/js/admin_filter.js') }}" type="text/javascript"></script>
                    <form id="sf_filter" method="POST" action="{{ path( app.request.get('_route') ) }}">
                        <table id="filter_table" class="table table-striped">
                            <tr>
                                {% set ind = 0 %}
                                {% set field = '' %}
                                {% for key,form in filter_form.children %}
        
                                    {% if field != '' and field != key|slice(0, -1) and ind % colspan == 0 %}
                                        </tr><tr>
                                    {% endif %}
        
                                    {% if field == '' %}
                                        <td>
                                    {% endif %}
        
                                    {% if key | slice(-1) == '0' %}
                                        {% set ind = ind + 1 %}
                                        {% if field != '' %}
                                            </td><td>
                                        {% endif %}
                                        {{ form_label(form) }}
                                    {% endif %}
        
                                    {% set field = key|slice(0, -1) %}
        
                                    {{ form_widget(form) }}
            
                                {% endfor %}
                            </tr>
                            <tr>
                                <th colspan="{{ colspan }}" class="th_footer">
                                    <a href="{{ this_path }}" class="filter_link">
                                        {% trans with {} from "admin_interface" %}filter.reset{% endtrans %}
                                    </a>&nbsp;&nbsp;&nbsp;
                                    <input class="btn btn-small btn-success" type="submit"
                                           value="{% trans with {} from "admin_interface" %}filter.filter{% endtrans %}" />
                                </th>
                            </tr>
                        </table>
                        {{ form_rest(filter_form) }}
                    </form>
                </div>
            </div>
        </div>
    </div>
</div>


